<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>显示子分类活动类别</title>
</head>
<body>
<h1>${listSubClassifies.msg}</h1>

<h2>子分类活动列表：</h2>
<hr>
<a href="showAllClassify.do">返回大分类活动类别页</a>
<hr>
<table>
    <tr>
        <td>活动类别</td>
    </tr>
    <c:forEach var="subClassify" items="${listSubClassifies.listSubClassifies}">
        <c:set var="supId" value="${subClassify.supId}"/>
        <tr>
            <td>${subClassify.subName}</td>
            <td><a href="deleteSubClassify.do?id=${subClassify.id}&supId=${subClassify.supId}"
                   onclick="return yesOrNo()">删除</a></td>
        </tr>
    </c:forEach>
    <tr>
        <td><a href="addSubClassifyReq.do?supId=${supId}">添加子分类活动</a></td>
    </tr>
</table>
<script language="javascript">
    function yesOrNo() {
        if (confirm("删除此子活动将不再显示，您确定删除吗?")) {
            return true;
        } else
            return false;
    }
</script>
</body>
</html>